/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2013/03/03
* File: Core.h
* Blog: http://www.cnblogs.com/zengqh/
**/

#pragma once

#if 1
#include "WinCore.h"
#endif

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <string>
#include <algorithm>
#include <functional>
#include <bitset>

#define HY_SAFE_DELETE(p)			{ if(p) { delete (p); (p) = 0; } }
#define HY_SAFE_DELETE_ARRAY(p)		{ if(p) { delete [] (p); (p) = 0; } }
#define HY_SAFE_RELEASE(p)			{ if(p) { (p)->release(); (p) = 0; } }
#define HY_SAFE_RELEASE2(p)			{ if(p) { (p)->Release(); (p) = 0; } }